package com.dt.dubai.core.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class DtException extends RuntimeException {

    String code;

    String message;

    public DtException(String code) {
        this.code = code;
        this.message = "";
    }

    public DtException(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public DtException(String code, Throwable e) {
        super(e);
        this.code = code;
    }

}
